#!/bin/bash
dir=`ls /home/xujun/`
for Dir in $dir;do
      touch /home/backup/$Dir
      cd /home/xujun
      tupian=`find $Dir -type f -name "*.jpg"|xargs`
      for n in $tupian;do
           fdfs_upload_file /etc/fdfs/client.conf $n >> /home/backup/$Dir
      done
done
